package com.offcn.user.feign;

import com.offcn.entity.Result;
import com.offcn.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user")
public interface UserFeign {

    @GetMapping("/user/{username}")
    public Result<User> findUserByUsername(@PathVariable("username") String username);
}
